gint *natural);
static void gtk_fixed_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
+static gboolean gtk_fixed_draw (GtkWidget *widget,
+ cairo_t *cr);
static void gtk_fixed_add (GtkContainer *container,
GtkWidget *widget);
static void gtk_fixed_remove (GtkContainer *container,
widget_class->get_preferred_width = gtk_fixed_get_preferred_width;
widget_class->get_preferred_height = gtk_fixed_get_preferred_height;
widget_class->size_allocate = gtk_fixed_size_allocate;
+ widget_class->draw = gtk_fixed_draw;
container_class->add = gtk_fixed_add;
container_class->remove = gtk_fixed_remove;
}
}
+static gboolean
+gtk_fixed_draw (GtkWidget *widget,
+ cairo_t *cr)
+{
+ GtkStyleContext *context;
+ GtkAllocation alloc;
+
+ context = gtk_widget_get_style_context (widget);
+ gtk_widget_get_allocation (widget, &alloc);
+
+ gtk_render_background (context, cr, 0, 0, alloc.width, alloc.height);
+ gtk_render_frame (context, cr, 0, 0, alloc.width, alloc.height);
+
+ return GTK_WIDGET_CLASS (gtk_fixed_parent_class)->draw (widget, cr);
+}
+
static void
gtk_fixed_add (GtkContainer *container,
GtkWidget *widget)